package com.burst.reptile.modular.monitor.service.impl;

import com.burst.reptile.modular.monitor.entity.SysJobLog;
import com.burst.reptile.modular.monitor.mapper.SysJobLogMapper;
import com.burst.reptile.modular.monitor.service.ISysJobLogService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 定时任务调度日志表 服务实现类
 * </p>
 *
 * @author wujin
 * @since 2020-06-09
 */
@Service
public class SysJobLogServiceImpl extends ServiceImpl<SysJobLogMapper, SysJobLog> implements ISysJobLogService {

	@Override
	public Page<SysJobLog> selectPageJobLogList(Page<SysJobLog> page, SysJobLog jobLog) {
		return this.baseMapper.selectPageJobLogList(page, jobLog);
	}
	
	@Override
	public List<SysJobLog> selectJobLogList(SysJobLog jobLog) {
		return this.baseMapper.selectJobLogList(jobLog);
	}

	@Override
	public SysJobLog selectJobLogById(Long jobLogId) {
		return this.baseMapper.selectJobLogById(jobLogId);
	}

	@Override
	public void addJobLog(SysJobLog jobLog) {
		this.baseMapper.insertJobLog(jobLog);
	}

	@Override
	public int deleteJobLogByIds(Long[] logIds) {
		return this.baseMapper.deleteJobLogByIds(logIds);
	}

	@Override
	public int deleteJobLogById(Long jobId) {
		return this.baseMapper.deleteJobLogById(jobId);
	}

	@Override
	public void cleanJobLog() {
		this.baseMapper.cleanJobLog();
	}


}
